import request from '@/api/request'

//广告列表分页
function adsList(data) {
  return request({
    url: `/lejuAdmin/advertise/adsList`,
    data
  })
}

//删除广告
function delAds(id,data) {
  return request({
    url: `/lejuAdmin/advertise/delAds/${id}`,
    method:"DELETE",
    data
  })
}

//新增广告
function addAds(data) {
  return request({
    url: `/lejuAdmin/advertise/addAds`,
    method:"POST",
    data
  })
}

//更新广告
function updateAds(data) {
  return request({
    url: `/lejuAdmin/advertise/updateAds`,
    method:"POST",
    data
  })
}



export{
  adsList,delAds,addAds,updateAds
}